<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数组</title>

    <script>
        var a=["apple","banana",1,2,233,666,true,2.33];
        alert(a+"=>>"+a.length);
        alert(a.join("<==>"));
        alert(a.reverse());
        alert(a.sort());
        a.push("watermelon","orange","1>2")
        alert(a);
        var b=a.valueOf();
        alert(b);
        a.splice(-1,1,"Orange");
        alert(a);




    </script>
</head>
<body>

</body>
</html>